package com.itheima.system;

public class SystemDemo {
    public static void main(String[] args) {
        int[] arr1 = new int[]{1,2,3,4,5};
        int[] arr2 = new int[10];
        System.arraycopy(arr1,3,arr2,5,2);//从被拷贝的那个位置开始到拷贝的哪个位置接收
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }
    }
}
